import { Form } from "@/components/Form";
import type { IArticle } from "@/types/article";
import { createFileRoute } from "@tanstack/react-router";
import { Random } from "mockjs";
export const Route = createFileRoute("/front/create")({
  component: RouteComponent,
});

function RouteComponent() {
  const data = {
    title: Random.csentence(5, 10),
    content: Random.cparagraph(),
    preview: "",
  } as IArticle;
  return <Form title="发表文章" data={data} />;
}
